import request from '@/utils/request'

// 获取菜品材料列表
export function getMathList(data) {
  return request({
    url: '/api/goodsDishMaterial/list',
    method: 'get',
    params: data
  })
}

// 添加菜品材料
export function addMathSave(data) {
  return request({
    url: '/api/goodsDishMaterial/save',
    method: 'post',
    data: data
  })
}
// 获取所有
export function listDishMaterial() {
  return request({
    url: '/api/goodsDishMaterial/listDishMaterial',
    method: 'get'
  })
}
